/*
 * ConsoleVisitor.cpp
 *
 *  Created on: Oct 4, 2009
 *      Author: jbarreneche
 */

#include "ConsoleVisitor.h"

void ConsoleVisitor::visitVertex(Vertex* vertex) {
	printf("Vertice(%s) < %f, %f>\n", vertex->getId().c_str(),
			vertex->getPositionX(), vertex->getPositionY());
}

void ConsoleVisitor::visitEdge(Vertex::Edge* edge) {
	printf("Arista [%s -> (%s) -> %s] long: %f m maxSpeed: %f km/h\n", edge->getOrigin()->getId().c_str(),
			edge->getId().c_str(),	edge->getDestination()->getId().c_str(),
			edge->getDistanceInMeters(), edge->getSpeedInKMH());
}
